def flat(results: list):
    res = []
    for i in results:
        if isinstance(i, list):
            res.extend(flat(i))
        else:
            res.append(i)
    return res
